<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<link href="{ADMIN_THEME}images/reset.css" rel="stylesheet" type="text/css" />
	<link href="{ADMIN_THEME}images/system.css" rel="stylesheet" type="text/css" />
	<link href="{ADMIN_THEME}images/dialog.css" rel="stylesheet" type="text/css" />
	<link href="{ADMIN_THEME}images/switchbox.css" rel="stylesheet" type="text/css" />
	<link href="{ADMIN_THEME}luos/css/style.min.css?v=4.1.0" rel="stylesheet"><link href="{ADMIN_THEME}images/table_form.css" rel="stylesheet" type="text/css" />
	{template admin/top.html}
	<script type="text/javascript" src="{ADMIN_THEME}js/jquery.min.js"></script>
	<script type="text/javascript" src="{ADMIN_THEME}js/dialog.js"></script>
	<script type="text/javascript">
		var sitepath = '{SITE_PATH}{ENTRY_SCRIPT_NAME}';
		var finecms_admin_document = "{$cats[$data['catid']]['setting']['document']}";
	</script>
	<script type="text/javascript" src="{LANG_PATH}lang.js"></script>
	<script type="text/javascript" src="{ADMIN_THEME}js/core.js"></script>
	<title>admin</title>
</head>
<body style="font-weight: normal;">
<div class="subnav">
	<div class="bk10"></div>
	<div class="table-responsive mytable">
			<input name="backurl" type="hidden" value="{$backurl}" />
			<table class="table table-striped" width="100%">
				<tbody>
				<tr>
					<th>订单号：</th>
					<td>{$data[id]}</td>
				</tr>
				<tr>
					<th>用户id：</th>
					<td>{$data[uid]}</td>
				</tr>
				<tr>
					<th>订单总金额：</th>
					<td>{$data[cash]}</td>
				</tr>
				<tr>
					<th>商品：</th>
					{loop $goods $good}
					<td>
						<tr>
							<td>商品名称：</td>
							<td>{$good[name]}</td>
						</tr>
						<tr>
							<td>价格：</td>
							<td>{$good[price]}</td>
						</tr>
						<tr>
							<td>数量：</td>
							<td>{$good[num]}</td>
						</tr>
						<tr>
							<td>图片：</td>
							<td><img src='<?php echo unserialize($good[banner])[file][0];?>' style="width:200px"/></td>
						</tr>
					</td>
					{/loop}
				</tr>
				<tr>
					<th>收件人：</th>
					<td>{$data[name]}</td>
				</tr>
				<tr>
					<th>收件人手机号：</th>
					<td>{$data[phone]}</td>
				</tr>
				<tr>
					<th>收件人地址：</th>
					<td>{$data[address]}</td>
				</tr>
				</tbody>
			</table>
	</div>
</div>
<script type="text/javascript">
	$(function(){
		window.top.art.dialog({id:'clz'}).close();
		var catid = $("#catid").val();
		var cats = new Array();
		{loop $cats $t}
		{if $t['modelid']==$modelid}
		cats[{$t['catid']}]="{$t['setting']['document']}";
		{/if}
		{/loop}
		finecms_admin_document = cats[catid];
		$("#catid").change(function(){
			var catid = $(this).val();
			finecms_admin_document = cats[catid];
		});
	});
	function clz() {
		window.top.art.dialog({ id:'clz',title:'Loading',fixed:true,lock:false,content: '<img src="{ADMIN_THEME}images/onLoad.gif">' });
	}
	function ajaxtitle() {
		$('#title_text').html('');
		get_kw();
		$.post(sitepath+'?s=admin&c=content&a=ajaxtitle&id='+Math.random(), { title:$('#title').val(), id:{php echo $data[id] ? $data[id] : 0;} }, function(data){

			if (data == '0' || data == 0) {
				$("#title_text").addClass("onCorrect");
				$("#title_text").removeClass("onError");
				$("#title_text").html("&nbsp;");
			} else {
				$('#title_text').html(data);
				$("#title_text").removeClass("onCorrect");
				$("#title_text").addClass("onError");
			}
		});
	}
	function loadInfo() {
		var url   = '{url("admin/content/ajaxloadinfo/")}&kw='+$("#keywords").val();
		var winid = 'loadinfo';
		window.top.art.dialog(
				{id:winid, okVal:fc_lang[6], cancelVal:fc_lang[7], iframe:url, title:'{lang('a-con-50')}', width:'660', height:'280', lock:true},
				function(){
					var d     = window.top.art.dialog({id:winid}).data.iframe;
					var ids   = d.document.getElementById('select').value;
					var arrid = ids.split(',');
					var c     = '';
					for (var i in arrid) {
						var id = arrid[i];
						if (id) {
							var title = d.document.getElementById('title_'+id).value;
							c += '<li id="rel_'+id+'">·<span>'+title+'</span><a onclick="remove_relation(\'rel_'+id+'\', \''+id+'\')" class="close" href="javascript:;"></a></li>';
						}
					}
					$("#relation_text").append(c);
					var rids = $("#relation").val();
					$("#relation").val(rids+ids);
				},
				function(){
					window.top.art.dialog({id:winid}).close();
				}
		);
		void(0);
	}
	//移除相关文章
	function remove_relation(sid, id) {
		var relation_ids = $('#relation').val();
		if(relation_ids !='' ) {
			$('#'+sid).remove();
			var r_arr = relation_ids.split(',');
			var newrelation_ids = '';
			$.each(r_arr, function(i, n){
				if(n!=id) {
					if(i==0) {
						newrelation_ids = n;
					} else {
						newrelation_ids = newrelation_ids+','+n;
					}
				}
			});
			$('#relation').val(newrelation_ids);
		}
	}


</script>
</body>
</html>
